package com.cxt.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * <p>
 * 账单信息
 * </p>
 *
 * @author baomidou
 * @since 2025-05-21
 */
@TableName("bill_table")
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class BillInfo implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键ID
     */
    private Long id;

    /**
     * 账户ID
     */
    private Long accountId;

    /**
     * 金额
     */
    private BigDecimal amount;

    /**
     * 类型
     * 1：入账
     * 2：出账
     */
    private Integer type;
    /**
     * 描述
     */
    private String description;
    /**
     * 交易时间
     */
    private LocalDateTime transactionTime;

}